package com.ad.pet.app.serach.adapter;

import android.support.annotation.Nullable;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ad.pet.R;
import com.ad.pet.models.remote.Amzon;

import java.util.List;

/**
 * Created by SEELE on 2019/7/2.
 */

public class SearchHotAdapter extends BaseQuickAdapter<Amzon.Suggest, BaseViewHolder> {
    public SearchHotAdapter(@Nullable List<Amzon.Suggest> data) {
        super(R.layout.item_layout_search_pop_layout, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, Amzon.Suggest item) {
        TextView tv_search = helper.getView(R.id.tv_search);
        tv_search.setText(item.getValue());
    }
}
